package com.cx.controller;

import com.cx.service.impl.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

/**
 * 这个页面是负责向user中心模块传输最近的页面
 */
@Controller
public class HtmlPages {
    @Autowired
    Service service;
    @RequestMapping("recentHtmlPage")
    public void recentHtmlPage(String htmlPage){
        List<String> stringList = new ArrayList<>();
        stringList.add(htmlPage);
        service.sendRecentHtml(stringList);
    }
}
